#include <iostream>
#include "FigureContainer.h"

using namespace std;

int main()
{
    FigureContainer f;
    try
    {
        f.readFile(R"(out.txt)");
        f[0]->shift(1.0, 5.0);
        f[2]->shift(5.0, 1.5);
        f.writeFile(R"(out2.txt)");
    } catch(exceptionType err)
    {
        if(err == notReadOpen)
            std::cout << "File was not read" << std::endl;
        if(err == notWriteOpen)
            std::cout << "File was not written" << std::endl;
    }
    return 0;
}
